package com.nbufe.command.demo2;

/**
 * @Author Zan
 * @Create 2024/6/12 14:11
 * @ClassName: Client
 * @Description : TODO 请用一句话描述该类的功能
 */
public class Client {
    public static void main(String[] args) {
        CalculatorForm calculatorForm = new CalculatorForm();

        calculatorForm.setCommand(new ConcreteCommand());

        calculatorForm.execute(10);
        calculatorForm.execute(20);
        calculatorForm.undo();
        calculatorForm.redo();
    }
}
